Skip to content

Conversation

lamATnginx
Copy link
Collaborator

@lamATnginx lamATnginx commented Aug 20, 2025

Proposed changes

Closes https://github.com/nginxinc/docs-platform/issues/618

Before:
Screenshot 2025-08-20 at 10 46 26 AM

After:
Screenshot 2025-08-20 at 10 43 51 AM

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • I have updated any relevant documentation (README.md and CHANGELOG.md)

@lamATnginx lamATnginx self-assigned this Aug 20, 2025
@lamATnginx lamATnginx requested a review from a team as a code owner August 20, 2025 17:39
@lamATnginx lamATnginx added the bug Something isn't working label Aug 20, 2025
Copy link

Deploy Preview will be available once build job completes!

Name Link
😎 Deploy Preview https://frontdoor-test-docs.nginx.com/previews/nginx-hugo-theme/355/

@lamATnginx lamATnginx changed the title Fix card icon size + add alignment Fix card icon size + alignment Aug 20, 2025
Copy link
Member

@TasoOneAsia TasoOneAsia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small note to our future selves that doesn't need to be addressed in this PR.

Comment on lines +2165 to +2166
width: 1.5rem;
height: 1.5rem;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not to tackle in this PR but this class is a little scary if we ever want to adjust sizing without affecting potential theme consumers.

It would probably be a good idea to variabilize this with variants (sm, md, lg) but lets cross that bridge when we get there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, we can update the lucide partial and icon shortcode to accept new prop and add a data attribute.

@lamATnginx lamATnginx merged commit 7986d55 into mainframe Aug 21, 2025
4 checks passed
@lamATnginx lamATnginx deleted the card-icon-sizing branch August 21, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants